package ooday05_vis;
/** 复杂版的季节枚举 */
public enum Seasons {
    //public static final Seasons SPRING = new Seasons("春天","暖和");
    SPRiNG("春天","暖和"),
    SUMMER("夏天","热"),
    AUTUMN("秋天","凉爽"),
    WINTER("冬天","冷");
    private String seasonName;
    private String seasonDesc;

    private Seasons(String seasonName, String SeasonDesc){//构造方法默认private的(只能私有)
        this.seasonName = seasonName;
        this.seasonDesc = seasonDesc;
    }

    public String getSeasonName(){
        return seasonName;
    }

    public void setSeasonName(String seasonName){
        this.seasonName = seasonName;
    }

    public String getSeasonDesc(){
        return seasonDesc;
    }

    public void setSeasonDesc(String seasonDesc){
        this.seasonDesc = seasonDesc;
    }
}
